import java.util.Arrays;

public class ParsedWord {
    private String word;
    private String signature;

    public ParsedWord(String word) {
        this.word = word;
        char[] wordToCharArray = word.toLowerCase().toCharArray();
        Arrays.sort(wordToCharArray);
        signature = new String(wordToCharArray);
    }

    public String getWord() {
        return word;
    }

    public String getSignature() {
        return signature;
    }
}
